package com.qixin.api.bean;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 充电记录表
 * </p>
 *
 * @author 吕正睿
 * @since 2018-11-02
 */
@TableName("com_charge_info")
public class ComChargeInfo extends Model<ComChargeInfo> {

	private static final long serialVersionUID = 1L;

	private Long id;
	/**
	 * 充电用户
	 */
	private String phone;


	/**
	 * 订单号
	 */
	@TableField("order_num")
	private String orderNum;

	public String getCarid() {
		return carid;
	}

	public void setCarid(String carid) {
		this.carid = carid;
	}

	/**
	 * 关联车的id
	 */
	@TableField("carid")
	private String carid;
	/**
	 * 车牌号
	 */
	@TableField("car_plant")
	private String carPlant;
	/**
	 * 备注
	 */
	private String remark;
	/**
	 * 电池剩余电量
	 */
	private String soc;
	/**
	 * 充电桩（枪）id
	 */
	@TableField("connectorinfo_id")
	private String connectorinfoId;
	/*
	username
	 */
	@TableField(exist = false)
	private String username;

	public String getMoeny() {
		return moeny;
	}

	public void setMoeny(String moeny) {
		this.moeny = moeny;
	}

	/*
    总余额
     */
	@TableField(exist = false)
	private String moeny;
	/*
	compeople_phone
	 */
	@TableField(exist = false)
	private  Long compeople_phone;
	/*
		recovery_moeny
		 */
	@TableField(exist = false)
	private BigDecimal recovery_moeny;

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public Long getCompeople_phone() {
		return compeople_phone;
	}

	public void setCompeople_phone(Long compeople_phone) {
		this.compeople_phone = compeople_phone;
	}

	public BigDecimal getRecovery_moeny() {
		return recovery_moeny;
	}

	public void setRecovery_moeny(BigDecimal recovery_moeny) {
		this.recovery_moeny = recovery_moeny;
	}

	public BigDecimal getMoney() {
		return Money;
	}

	public void setMoney(BigDecimal Money) {
		this.Money = Money;
	}

	public String getCarPlant() {
		return carPlant;
	}

	public void setCarPlant(String carPlant) {
		this.carPlant = carPlant;
	}

	/*
                sunmoney
                 */
	@TableField(exist = false)
	private BigDecimal Money;
	/**
	 * 开始时间
	 */
	@TableField("start_time")
	private String startTime;
	/**
	 * 本次采样时间
	 */
	@TableField("sampling_time")
	private String samplingTime;
	/**
	 * 结束时间
	 */
	@TableField("end_time")
	private String endTime;
	/**
	 * 累计消耗电量
	 */
	@TableField("total_power")
	private String totalPower;
	/**
	 * 累计电费
	 */
	@TableField("elec_moeny")
	private BigDecimal elecMoeny;
	/**
	 * 累计总金额
	 */
	@TableField("total_moeny")
	private BigDecimal totalMoeny;
	/**
	 * 累计服务费
	 */
	@TableField("service_moeny")
	private BigDecimal serviceMoeny;
	/**
	 * 充电用户ID
	 */
	@TableField("user_id")
	private Long userId;

	/**
	 * 充电站名称
	 */
	@TableField("station_name")
	private String stationName;
	/**
	 * 充电站地址
	 */
	@TableField("station_address")
	private String stationAddress;

	/**
	 * 	 余额
	 */
	@TableField(exist = false)
	private Long balance;
	/**
	 * 车牌号
	 */
	/*@TableField(exist = false)
	private String carNumber;*/
	/**
	 * 企业名称
	 */
	@TableField(exist = false)
	private String ptName;

	public String getPtName() {
		return ptName;
	}

	public void setPtName(String ptName) {
		this.ptName = ptName;
	}

	/*public String getCarNumber() {

		return carNumber;
	}*/

	//public void setCarNumber(String carNumber) {
		//this.carNumber = carNumber;
	//}

	public Long getBalance() {

		return balance;
	}

	public void setBalance(Long balance) {
		this.balance = balance;
	}

	public String getStationName() {
		return stationName;
	}

	public void setStationName(String stationName) {
		this.stationName = stationName;
	}

	public String getStationAddress() {
		return stationAddress;
	}

	public void setStationAddress(String stationAddress) {
		this.stationAddress = stationAddress;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getSoc() {
		return soc;
	}

	public void setSoc(String soc) {
		this.soc = soc;
	}

	public String getConnectorinfoId() {
		return connectorinfoId;
	}

	public void setConnectorinfoId(String connectorinfoId) {
		this.connectorinfoId = connectorinfoId;
	}

	public String getStartTime() {
		return startTime;
	}

	public void setStartTime(String startTime) {
		this.startTime = startTime;
	}

	public String getSamplingTime() {
		return samplingTime;
	}

	public void setSamplingTime(String samplingTime) {
		this.samplingTime = samplingTime;
	}

	public String getEndTime() {
		return endTime;
	}

	public void setEndTime(String endTime) {
		this.endTime = endTime;
	}

	public String getTotalPower() {
		return totalPower;
	}

	public void setTotalPower(String totalPower) {
		this.totalPower = totalPower;
	}

	public BigDecimal getElecMoeny() {
		return elecMoeny;
	}

	public void setElecMoeny(BigDecimal elecMoeny) {
		this.elecMoeny = elecMoeny;
	}

	public BigDecimal getTotalMoeny() {
		return totalMoeny;
	}

	public void setTotalMoeny(BigDecimal totalMoeny) {
		this.totalMoeny = totalMoeny;
	}

	public BigDecimal getServiceMoeny() {
		return serviceMoeny;
	}

	public void setServiceMoeny(BigDecimal serviceMoeny) {
		this.serviceMoeny = serviceMoeny;
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public String getOrderNum() {
		return orderNum;
	}

	public void setOrderNum(String orderNum) {
		this.orderNum = orderNum;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "ComChargeInfo{" +
				"id=" + id +
				", phone='" + phone + '\'' +
				", orderNum='" + orderNum + '\'' +
				", carid='" + carid + '\'' +
				", carPlant='" + carPlant + '\'' +
				", remark='" + remark + '\'' +
				", soc='" + soc + '\'' +
				", connectorinfoId='" + connectorinfoId + '\'' +
				", username='" + username + '\'' +
				", moeny='" + moeny + '\'' +
				", compeople_phone=" + compeople_phone +
				", recovery_moeny=" + recovery_moeny +
				", Money=" + Money +
				", startTime='" + startTime + '\'' +
				", samplingTime='" + samplingTime + '\'' +
				", endTime='" + endTime + '\'' +
				", totalPower='" + totalPower + '\'' +
				", elecMoeny=" + elecMoeny +
				", totalMoeny=" + totalMoeny +
				", serviceMoeny=" + serviceMoeny +
				", userId=" + userId +
				", stationName='" + stationName + '\'' +
				", stationAddress='" + stationAddress + '\'' +
				", balance=" + balance +
				", ptName='" + ptName + '\'' +
				'}';
	}
}